package benchmarks.tpcc.redis;

import api.Configuration;
import api.Loader;
import api.connection.DBConnection;
import api.connection.ConnectionRedis;
import benchmarks.tpcc.TPCCBenchmark;

public class TPCCBenchRedis extends TPCCBenchmark {
    public TPCCBenchRedis(Configuration config) {
        super(config);
        databaseName = RedisName;
    }

    public DBConnection makeConnection() {
        return new ConnectionRedis(config);
    }

    public Loader makeLoaderImpl() {
        return new TPCCLoaderRedis(config.getScaleFactor());
    }
}
